package com.nbsaas.boot.cms.rest.convert;

import com.nbsaas.boot.cms.data.entity.Page;
import com.nbsaas.boot.cms.api.domain.response.PageResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 页面-实体对象转化成响应对象
*/

public class PageResponseConvert  implements Converter<PageResponse,Page> {

    @Override
    public PageResponse convert(Page source) {
        PageResponse  result = new  PageResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

